package io.renren.service.impl;

import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import io.renren.dao.BookDao;
import io.renren.entity.Book;
import io.renren.service.BookService;


@Service("bookService")
public class BookServiceImpl implements BookService {
    @Resource
    private BookDao bookDao;

    @Override
    public Book queryObject(Long id) {
        return bookDao.queryObject(id);
    }

    @Override
    public List<Book> queryList(Map<String, Object> map) {
        return bookDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return bookDao.queryTotal(map);
    }

    @Override
    public void save(Book book) {
            bookDao.save(book);
    }

    @Override
    public void update(Book book) {
            bookDao.update(book);
    }

    @Override
    public void delete(Long id) {
            bookDao.delete(id);
    }

    @Override
    public void deleteBatch(Long[]ids) {
            bookDao.deleteBatch(ids);
    }

    @Override
    public void updateBatch(List<Book> bookList){
        bookDao.updateBatch(bookList);
    }
	
}
